import request from '@/utils/request'

// 分页查询位置
export function findBaseSubjectPageList(data) {
    return request({
      url: '/spaceSubject/findBaseSubjectPageList',
      method: 'post',
      data
    })
}

// 修改or更新
export function addOrUpdateSubject(data) {
    return request({
      url: '/spaceSubject/addOrUpdateSubject',
      method: 'post',
      data
    })
}

// 删除
export function deleteBaseSubject(data) {
    return request({
      url: '/spaceSubject/deleteBaseSubject',
      method: 'post',
      data
    })
}
//查询用户
export function findUserList(data) {
    return request({
      url: '/sys/user/findUserList',
      method: 'post',
      data
    })
}

export function getMajorAllSubj(majorId){
  return request({
    url: '/spaceSubject/getMajorAllSubj/' + majorId,
    method: 'get',
  })  
}

export function getClassAllSubj(classId){
  return request({
    url: '/spaceSubject/getClassAllSubj/' + classId,
    method: 'get',
  })  
}